<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>字体标记</title>
    <style>
        div{
            color:red;
            font-size: 32px;
            /* 当地一个字体无效,则默认匹配下一个有效字体 */
            font-family: "楷体",'Courier New', Courier, monospace
        }
        @font-face{
            /* 自定义一个字体加载的名称 */
            font-family:myFonts;
            src:url(fonts/impact.ttf);
        }
        #outer{
            font-family: myFonts;
        }
    
    </style>
</head>
<body>
    <div>
        字体
    </div>
    <div id="outer">你好</div>
</body>
</html>